# 猜拳练习
# import random
# def guess_signal_game():
#     signals = ['石头', '剪刀', '布']
#     while True:
#         computer_select = signals[random.randint(0,2)]
# def play_game():
#     '''此函数是调用外部猜拳游戏的接口'''
#     guess_signal_game()
#
# if __name__ == '__main__':
#     play_game()

# try 语句   捕获异常
# def get_score():
#     s = int(input('请输入学生成绩:'))
#     if 0<= s <=100:
#         return s
# score = get_score()
# #
# try:
#     score = get_score()
# except:
#     score = 0
#
# # except xx:
# #     pass
# #     else:
# #     pass
# #     finally:
#
# print('学生的成绩是：', score)


